package com.countryside.service.impl;

import com.countryside.mapper.WorkCategoryMapper;
import com.countryside.pojo.WorkCategory;
import com.countryside.service.WorkCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkCategoryServiceImpl implements WorkCategoryService {
    @Autowired
    WorkCategoryMapper workCategoryMapper;

    @Override
    public List<WorkCategory> getCategory(String fatherId) {
        return workCategoryMapper.getCategory(fatherId);
    }

    @Override
    public WorkCategory getACategory(String id) {
        return workCategoryMapper.getACategory(id);
    }

    @Override
    public List<WorkCategory> getAllWorkCategory() {
        return workCategoryMapper.getAllWorkCategory();
    }
}
